<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<!-- #include virtual=/inc/action.header.inc.asp -->

<%
	'## 파라미터 변수 선언부
	rcvrId			= Request("rcvrId")
	apprSeq		= Request("apprSeq")
	apprYear		= Request("apprYear")
	apprMemo	= Request("apprMemo")
	apprPass		= Request("apprPass")
	apprCd			= Request("apprCd")
	
	accessId = Request.Cookies("S_uid")

	isPerms = aFieldValue("SELECT ISNULL(COUNT(*),0) FROM tblUser WHERE userId='" & rcvrId & "' AND apprPass='" & apprPass & "'")
	
	if isPerms > 0 then 		
		SQLTitle = "-- ■■■■  결재 승인 정보 수정 ■■■■"
		SQL = "exec spSaveWorkApprRcvr '" & apprYear & "','" & apprSeq & "', '" & rcvrId & "', '" & apprCd & "', '" & apprMemo & "'"
		DbCon.Execute SQL
		rslt = "Save OK!"
		msg = "결재 승인/반려 정보 저장"		
	else
		rslt = "incorrect password!"
		msg = "결재 비밀번호가 일치 하지 않습니다."		
		'msg = "SELECT ISNULL(COUNT(*),0) FROM tblUser WHERE userId='" & rcvrId & "' AND apprPass='" & apprPass & "'"
	end if 

	Call rsWithXML2(rslt,msg)
%>